
<div class="panel" > 

	<!-- IF SHOW_ALL_USER_DELEGATION -->
		<div class="inner"><span class="corners-top"><span></span></span> 
			<h2>
				{L_SV_DELEGATION_WHILE_SITE} &nbsp 
				<img title="{L_SV_DELEGATION_LIST_INFO}" src="{T_IMAGES_PATH}icons/smile/info.gif" alt="info" />
			</h2> 
		</div>

		
	<!-- ELSE -->	
		<div class="inner"><span class="corners-top"><span></span></span> 
			<h2>
				<!-- IF S_SHOW_QUERY_USERNAME_IN_DELEGATION_LIST -->
					{U_QUERY_USERNAME} -  
				<!-- ENDIF -->
				{L_SV_HISTORY} &nbsp 
				<img title="{L_SV_DELEGATION_LIST_INFO}" src="{T_IMAGES_PATH}icons/smile/info.gif" alt="info" />
			</h2> 			
		</div>	
	<!-- ENDIF -->
		
	<!-- IF SHOW_ALL_USER_DELEGATION -->
	
	<!-- ELSE  -->			
	<span style="float:right">	
		<!-- IF S_SHOW_QUERY_USERNAME_IN_DELEGATION_LIST -->			
			<a  href="{BOARD_URL}download.php?mode=transaction&user_id={S_QUERY_USER_ID}"  >
				<img title="{L_SV_DELEGATION_LIST_DOWNLOAD_TIP}" src="{T_IMAGES_PATH}csv_file.png"  width="36" height="36" class='edit_note_icon'/> 
			</a>			
		<!-- ELSE  -->			
			<a  href="{BOARD_URL}download.php?mode=transaction&user_id={S_USER_ID}"  >
				<img title="{L_SV_DELEGATION_LIST_DOWNLOAD_TIP}" src="{T_IMAGES_PATH}csv_file.png"  width="36" height="36" class='edit_note_icon'/> 
			</a>			
		<!-- ENDIF -->
	</span>	
	<!-- ENDIF -->
	
	<!-- IF DELEGATION_LIST_INFO_OPTION == 0  -->
	<p style="color:grey">{L_SV_DELEGATION_LIST_INFO_TIP_FOR_BASIC_INFO}</p>
	<!-- ENDIF -->
		
	<!-- IF S_LIST  -->	
	<table border="0" cellpadding="5" cellspacing="5">
		<tr>		
			<!-- IF SHOW_ALL_USER_DELEGATION -->	
			<td align="center" title="{L_SV_DELEGATION_LIST_TIP_USER}"></td>			
			<td align="center" title="{L_SV_DELEGATION_LIST_TIP_USER}"><p>{L_SV_USER_NAME}</p></td>
			<!-- ENDIF -->
			
			<td align="center"><p>{L_SV_TYPE}</p></td>
			
			<td align="center"><p>{L_SV_CORP_NAME}</p></td>
			<td align="center"></td>
			<td align="center"><p>{L_SV_NUMBER}</p></td>
			
			<!-- IF DELEGATION_LIST_INFO_OPTION == 1  -->
			<td align="center"><p>{L_SV_REQUEST_PRICE}</p></td>	
			<!-- ENDIF -->
			
			<td align="center" title="{L_SV_DELEGATION_LIST_TIP_PRICE}"><p>{L_SV_PRICE}</p></td>
			
			<!-- IF DELEGATION_LIST_INFO_OPTION == 1  -->
			<td align="right"  title="{L_SV_DELEGATION_LIST_TIP_TOTAL_AMOUNT}"><p>{L_SV_TRANSACTION_TOTAL_AMOUNT} </p></td>
			<td align="right"  title="{L_SV_DELEGATION_LIST_TIP_TRANSACTION_TAX}"><p>{L_SV_TRANSACTION_TAX}</p></td>
			<td align="center" title="{L_SV_DELEGATION_LIST_TIP_REQUEST_TIME}"><p>{L_SV_REQUEST_TIME}</p></td>
			<!-- ENDIF -->
			
			<td align="center" title="{L_SV_DELEGATION_LIST_TIP_DEAL_TIME}"><p>{L_SV_DEAL_TIME}</p></td>			
			
			<!-- IF DELEGATION_LIST_INFO_OPTION == 1  -->
			<td align="center" title="{L_SV_DELEGATION_LIST_TIP_CHECK_TIME}"><p>{L_SV_CHECK_TIME}</p></td>
			<td align="left"   title="{L_SV_DELEGATION_LIST_TIP_CHECK_STATUS}"><p>{L_SV_CHECK_STATUS}</p></td>						
			<!-- ENDIF -->
						
			<!-- IF SHOW_NOTE -->			
			<td align="left"   title="{L_SV_DELEGATION_LIST_TIP_NOTE}"><p>{L_SV_NOTE}</p></td>
			<!-- ENDIF -->
			
		</tr>
		
		
		<!-- BEGIN list -->
		<tr>
			
			<!-- IF SHOW_ALL_USER_DELEGATION -->	
			<td align="center" title="{L_SV_DELEGATION_LIST_TIP_USER}">			
				<a href="{S_QUERY_USER}&user_id={list.USER_ID}">
					<!-- IF list.USER_FB_ID != 0 -->
					<img src="http://graph.facebook.com/{list.USER_FB_ID}/picture" width=32 height=32>
					<!-- ELSE -->
					<img src="" width=32 height=32 style="border:0px solid black"> 
					<!-- ENDIF -->
				</a>
			</td>
			<td align="center" title="{L_SV_DELEGATION_LIST_TIP_USER}"><p>
				<a href="{S_QUERY_USER}&user_id={list.USER_ID}">{list.USERNAME}</a></p>
			</td>
			<!-- ENDIF -->
			
			<td align="left"><p>
				<!-- IF list.ACTION eq buy -->     						{L_SV_ACTION_BUY}    					
				<!-- ELSEIF  list.ACTION eq sell -->    				{L_SV_ACTION_SELL}     			
				<!-- ELSEIF  list.ACTION eq short_sell -->    			{L_SV_ACTION_SHORT_SELL}     			
				<!-- ELSEIF  list.ACTION eq short_cover -->    			{L_SV_ACTION_SHORT_COVER}     			
				<!-- ELSEIF  list.ACTION eq sell_off_hour --> 			{L_SV_ACTION_SELL_OFF_HOUR}       		
				<!-- ELSEIF  list.ACTION eq forced_short_cover_equity -->		{L_SV_ACTION_FORCED_SHORT_COVER}       		
				<!-- ELSEIF  list.ACTION eq forced_short_cover_maintenance -->		{L_SV_ACTION_FORCED_SHORT_COVER}       		
				<!-- ELSEIF  list.ACTION eq forced_short_cover -->		{L_SV_ACTION_FORCED_SHORT_COVER}       		
				
				<!-- ELSEIF  list.ACTION eq to_buy -->  				{L_SV_ACTION_TO_BUY}      			
				<!-- ELSEIF  list.ACTION eq to_sell --> 				{L_SV_ACTION_TO_SELL}       		
				<!-- ELSEIF  list.ACTION eq to_short_sell -->    		{L_SV_ACTION_TO_SHORT_SELL}     		
				<!-- ELSEIF  list.ACTION eq to_short_cover -->    		{L_SV_ACTION_TO_SHORT_COVER}     		
				<!-- ELSEIF  list.ACTION eq to_sell_off_hour -->		{L_SV_ACTION_TO_SELL_OFF_HOUR}       		
				
				<!-- ELSEIF  list.ACTION eq to_buy_deleted -->  		{L_SV_ACTION_TO_BUY_DELETED}      	
				<!-- ELSEIF  list.ACTION eq to_sell_deleted --> 		{L_SV_ACTION_TO_SELL_DELETED}       
				<!-- ELSEIF  list.ACTION eq to_short_sell_deleted -->   {L_SV_ACTION_TO_SHORT_SELL_DELETED}    
				<!-- ELSEIF  list.ACTION eq to_short_cover_deleted -->  {L_SV_ACTION_TO_SHORT_COVER_DELETED}				
				<!-- ELSEIF  list.ACTION eq to_sell_off_hour_deleted -->{L_SV_ACTION_TO_SELL_OFF_HOUR_DELETED}       		    
				
				<!-- ELSE -->											{L_SV_ACTION_UNKNOWN}
				<!-- ENDIF -->			
				</p>
			</td>
			
			
			
			<td align="center">			
				<p><a href=" http://mops.twse.com.tw/mops/web/t146sb03?step=1&firstin=1&off=1&keyword4=&code1=&TYPEK2=&checkbtn=&queryName=co_id&TYPEK=all&isnew=true&co_id={list.CORP_ID}" target=_blank>{list.CORP_NAME}({list.CORP_ID})</a></p>
			</td>
			
			<td align="center">
				<!-- IF IN_FB_IFRAME -->
				<a href="http://www.google.com.hk/finance?q=TPE:{list.CORP_ID}" target=_blank><img src="../images/G.png" width=24 height=24 class='more_info_icon'></a>
				<a href="http://tw.stock.yahoo.com/q/q?s={list.CORP_ID}" target=_blank><img src="../images/Y.png" width=24 height=24 class='more_info_icon'></a>
				<!-- ELSE -->
				<a href="http://www.google.com.hk/finance?q=TPE:{list.CORP_ID}" target=_blank><img src="images/G.png" width=24 height=24 class='more_info_icon'></a>
				<a href="http://tw.stock.yahoo.com/q/q?s={list.CORP_ID}" target=_blank><img src="images/Y.png" width=24 height=24 class='more_info_icon'></a>
				<!-- ENDIF -->			
				
			</td>
			
			<td align="center"><p>{list.NUMBER}</p></td>
			
			<!-- IF DELEGATION_LIST_INFO_OPTION == 1  -->
			<td><p>
				<!-- IF list.REQUEST_PRICE eq 0 --> 
				{L_SV_MARKET_PRICE} 
				<!-- ELSE -->
				{list.REQUEST_PRICE}
				<!-- ENDIF -->
			</p></td>					
			<!-- ENDIF -->
			
			<td align="center" title="{L_SV_DELEGATION_LIST_TIP_PRICE}"><p>
					<a href="http://mis.twse.com.tw/stock/fibest.jsp?stock={list.CORP_ID}" target=_blank>
					<!-- IF list.PRICE eq 0 -->   --   <!-- ELSE -->    {list.PRICE}      <!-- ENDIF -->
					</a>
				</p>
			</td>
			
			<!-- IF DELEGATION_LIST_INFO_OPTION == 1  -->
			<td align="right" title="{L_SV_DELEGATION_LIST_TIP_TOTAL_AMOUNT}"><p>  
				<!-- IF list.PRICE eq 0 -->   
					--   
				<!-- ELSE -->    
					{list.TOTAL_AMOUNT}
				<!-- ENDIF -->
				</p>
			</td>
			
			<td align="right" title="{L_SV_DELEGATION_LIST_TIP_TRANSACTION_TAX}"><p>  
				<!-- IF  list.ACTION eq sell or list.ACTION eq short_sell -->    				
					{list.TRANSACTION_TAX}
				<!-- ELSE -->   
					--
				<!-- ENDIF -->
				</p>
			</td>
			
			<td align="left" title="{L_SV_DELEGATION_LIST_TIP_REQUEST_TIME}"><p>
				<!-- IF  list.ACTION eq forced_short_cover -->    				
					--
				<!-- ELSE -->   
					{list.REQUEST_TIME}	
				<!-- ENDIF -->
				</p>
			</td>
			<!-- ENDIF -->		
			
			<td align="center" title="{L_SV_DELEGATION_LIST_TIP_DEAL_TIME}"><p>
				<!-- IF list.DEAL_TIME eq 0 -->   
					{L_SV_DEAL_NOT_DONE}   
				<!-- ELSE -->    
					{list.DEAL_TIME}      
				<!-- ENDIF -->
				</p>
			</td>			
			
			<!-- IF DELEGATION_LIST_INFO_OPTION == 1  -->
			<td align="center"  title="{L_SV_DELEGATION_LIST_TIP_CHECK_TIME}"><p>		
				<!-- IF list.ACTION eq to_buy or list.ACTION eq to_sell or list.ACTION eq to_short_sell or list.ACTION eq to_short_cover -->					
					<!-- IF list.CHECK_TIME ne 0 -->					
						{list.CHECK_TIME}      
					<!-- ENDIF -->
				<!-- ENDIF -->			
				</p>
			</td>
			
			<td align="center"  title="{L_SV_DELEGATION_LIST_TIP_CHECK_STATUS}"><p>			
				<!-- IF list.CHECK_STATUS eq corp_id_not_valid -->	{L_SV_NO_THIS_CORP_ID}    
				<!-- ELSEIF list.CHECK_STATUS eq cannot_get_price -->		{L_SV_CANNOT_GET_PRICE}   
				<!-- ELSEIF list.ACTION eq to_buy or list.ACTION eq to_sell -->    
				
				
					<!-- IF list.CHECK_STATUS eq volume_not_enough -->	{L_SV_VOLUME_NOT_ENOUGH}    
					<!-- ELSEIF list.CHECK_STATUS eq money_not_enough -->     {L_SV_MONEY_NOT_ENOUGH}    
					<!-- ELSEIF list.CHECK_STATUS eq '' -->    {L_SV_WAITING_FOR_CHECK}   
					<!-- IF list.CHECK_STATUS eq price_not_met -->     {L_SV_PRICE_NOT_MET}    <!-- ENDIF -->												
					<!-- ENDIF -->				
					
				<!-- ENDIF -->					
				</p>
			</td>
			<!-- ENDIF -->	
			
			<!-- IF SHOW_NOTE -->			
			<td align="left"  title="{L_SV_DELEGATION_LIST_TIP_NOTE}"><p>
				{list.NOTE}
				</p>
			</td>
			<!-- ENDIF -->
			
		</tr>
		<!-- END list -->
	</table>	
	
	<!-- ELSE -->
	{L_SV_NO_HISTORY}
	<!-- ENDIF -->

</div>



